home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 4
/
Aminet 4 - November 1994.iso
/
aminet
/
comm
/
term
/
vltj5867.lha
/
VLT
/
rexx
/
VLTMouse.vlt
< prev
next >
Wrap
Text File
|
1994-03-27
|
688b
|
29 lines
/** VLTMouse.vlt
*
* Demo of how to program VLT's mouse to send something to an ARexx port.
* See also VLTMouse.rexx.
*
**/
/*
* Add libraries if necessary
*/
if show("l", "rexxarplib.library") = 0 then do
check = addlib('rexxsupport.library', 0, -30, 0)
check = addlib('rexxarplib.library', 0, -30, 0)
end
/*
* The following sequence determines both VLT's screen and port name.
*/
vltport = address()
cols = ScreenCols(vltport)
if cols == -1 then vltscreen = ""
else vltscreen = vltport
/*
* Start the program that receives the mouse clicks
*/
"@@VLTMouse.rexx "vltport" "vltscreen
"mousesupport (~rx 'address "vltport"MOUSE %X %Y %x %y %c %l %q')"
exit